﻿#include "Mystackandqueue.h"
#include<iostream>

int main()
{
	//Ysz::stack<int> a;
	//a.push(1);
	//a.push(2);
	//a.push(3);
	//a.push(4);
	////cout << a.size() << endl;
	//size_t n = a.size();
	//for (size_t i = 0; i < n; i++)
	//{
	//	cout << a.top() << endl;
	//	a.pop();
	//	cout << "szie:" << a.size() << endl;

	//}
	//cout << a.empty();
	Ysz::queue<int> b;
	b.push(1);
	b.push(2);
	b.push(3);
	b.push(4);
	b.push(5);
	size_t n2 = b.size();
	//cout << b.back();
	for (size_t i = 0; i < n2; i++)
	{
		cout << b.front() << endl;
		b.pop();
		cout << "szie:" << b.size() << endl;

	}
	cout << b.empty();
	return 0;
}
